// 封装本地存储token模块
const tokenKey = 'hm-mobile-78-token'
// 存储token
export const setToken = (tokenInfo) => {
  localStorage.setItem(tokenKey, JSON.stringify(tokenInfo))
}
// 获取token
export const getToken = () => {
  return JSON.parse(localStorage.getItem(tokenKey))
}
// 删除token
export const removeToken = () => {
  localStorage.removeItem(tokenKey)
}
